﻿using System.Collections.Generic;
using AdAggregator.Aggregator;
using AdAggregator.Website;
using ClothingAggregator.Models.Parser;
using ClothingAggregator.Models.Website;

namespace ClothingAggregator.Models
{
    public class MyAggregator : BaseAggregator<MySearchData, MyAdvertisement>
    {
        private readonly List<IWebsite<MySearchData, MyAdvertisement>> websites =
           new List<IWebsite<MySearchData, MyAdvertisement>>
            {
               new AnswearComWebsite(new AnswearComParser()),
               new BrandPlWebsite(new BrandPlParser())
            };

        public MyAggregator()
        {
            ResultsPerPage = 12;
        }

        public override IEnumerable<IWebsite<MySearchData, MyAdvertisement>> GetWebsites()
        {
            return websites;
        }
    }
}